package solucionessgh.Usuarios;

/**
 *
 * @author roderick
 */
public class UsuariosController {

    public void viewLogin(){
        DlgLogin dialog = new DlgLogin(new javax.swing.JFrame(), true); 
        UsuariosModel model = new UsuariosModel();
        dialog.setVisible(true);
        while(true){
            model.setUsulogin(dialog.getTextUsuario());
            model.setUsupass(dialog.getTextClave());
            if(model.dologin()){
                dialog.setVisible(false);
                break;
            }else{
               dialog.setVisible(true); 
            }
            dialog.setVisible(true);                
        }
    }

    public void renderView(){
        UsuariosView dialog = new UsuariosView(new javax.swing.JFrame(), true);
        dialog.setVisible(true);
    }
}
